home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PCMania 19
/
PCMania19.iso
/
Jogos em Flash
/
CARTAS
/
CARIBBEAN_POKER.SWF
/
scripts
/
DefineSprite_183
/
frame_17
/
DoAction.as
Wrap
Text File
|
2002-05-07
|
2KB
|
89 lines
if((x6 == "1" or x7 == "1" or x8 == "1" or x9 == "1" or x10 == "1") and (x6 == "13" or x7 == "13" or x8 == "13" or x9 == "13" or x10 == "13"))
{
DealerHand = "1";
}
i = "7";
u0 = "0";
u1 = "0";
un = "0";
while(i < "11")
{
if(eval("p" add i) == eval("p" add (i - "1")))
{
set("u" add un,eval("u" add un) + "1");
set("pairNum" add un,eval("p" add i));
}
else if("0" < eval("u" add un))
{
un += "1";
}
i += "1";
}
if(u0 == "3")
{
DealerHand = "8";
}
if(u0 == "2")
{
DealerHand = "4";
}
if(u0 == "1")
{
DealerHand = "2";
}
if(u0 == "2" and u1 == "1" or u0 == "1" and u1 == "2")
{
DealerHand = "7";
}
if(u0 == "1" and u1 == "1")
{
DealerHand = "3";
}
i = "7";
straight = "1";
while(i < "11")
{
if(eval("x" add i) != eval("x" add (i - "1")) + "1")
{
straight = "0";
}
i += "1";
}
if(straight == "1" or x6 == "1" and x7 == "10" and x8 == "11" and x9 == "12" and x10 == "13")
{
straight = "1";
DealerHand = "5";
}
i = "7";
flush = "1";
while(i < "11")
{
if(eval("z" add i) != eval("z" add (i - "1")))
{
flush = "0";
}
i += "1";
}
if(flush == "1")
{
DealerHand = "6";
}
if(straight == "1" and flush == "1")
{
DealerHand = "9";
}
if(straight == "1" and flush == "1" and x6 == "1" and x10 == "13")
{
DealerHand = "10";
}
dpair = pairNum0;
dpair2 = pairNum1;
if(dpair == "1")
{
dpair = "14";
}
if(dpair2 == "1")
{
dpair2 = "14";
}